<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/style.css" rel="stylesheet" type="text/css">
<script src="script/common.js"></script>
<title>客户管理系统</title>
</head>
<body>

<div class="page_title">客户服务管理 > 服务创建</div>
<div class="button_bar">
	<button class="common_button" onclick="help('76876');">帮助</button>
	<button class="common_button" onclick="reload();">保存</button>  
</div>
<form action="serviceinfo/serviceaddAction.action" method="post" name="addServiceForm">
	<table class="query_form_table">
		<tr>
			<th>编号</th>
			<td><input disabled /></td>
			<th>服务类型</th>
			<td>
				<select name="cstServiceInfo.svrType">
					<option>咨询</option>
					<option>投诉</option>
					<option>建议</option>
				</select><span class="red_star">*</span>
			</td>
		</tr>
		<tr>
			<th>概要</th>
			<td colspan="3"><input size="53" value="我想换货" name="cstServiceInfo.svrTitle" type="text"/>
			<span class="red_star">*</span></td>
		</tr>	
		<tr>
			<th>客户</th>
			<td><input size="20" name="cstServiceInfo.svrCustName" value="客户1"/>
			<span class="red_star">*</span></td>
			<th>状态</th>
			<td><input size="20" value="新创建" name="cstServiceInfo.svrStatus" readonly></td>
		</tr>	
		<tr>
			<th>服务请求</th>
			<td colspan="3"><textarea rows="6" cols="50" name="cstServiceInfo.svrRequest">之前采购的一百台笔记本电脑存在问题，希望可以退换</textarea>
			<span class="red_star">*</span></td>
		</tr>
		<tr>
			<th>创建人</th>
			<td><input value="${username}" readonly size="20" name="cstServiceInfo.svrCreateBy"/>
			<input value=2 readonly size="20" name="cstServiceInfo.svrCreateId" type="hidden"/>
			<span class="red_star">*</span></td>
			<th>创建时间</th>
			<td><input id="t1" readonly size="20" name="cstServiceInfo.svrCreateDate"/>
			<span class="red_star">*</span></td>
		</tr>
		</table>
	<br />
	<table class="query_form_table" id="table3">
		<tr>
			<th>分配给</th>
			<td>
			<select disabled><option>admin</option></select><span class="red_star">*</span></td>
			<th>分配时间</th>
			<td><input disabled id="t2" readonly size="20" name="cstServiceInfo.svrDueDate"/>
			<span class="red_star">*</span></td>
		</tr>
	</table>
	<br />	
	<table class="query_form_table" id="table1">
		<tr>
			<th>服务处理</th>
			<td colspan="3"><textarea disabled rows="6" cols="50" name="cstServiceInfo.svrDeal"></textarea>
			<span class="red_star">*</span></td>
		</tr>
		<tr>
			<th>处理人</th>
			<td><input disabled readonly size="20" name="cstServiceInfo.svrDealBy"/><span class="red_star">*</span></td>
			<th>处理时间</th>
			<td><input disabled id="t3" readonly size="20" name="cstServiceInfo.svrDealDate"/>
			<span class="red_star">*</span></td>
		</tr>
	</table>
	<br />
	<table class="query_form_table" id="table2">
		<tr>
			<th>处理结果</th>
			<td><input disabled size="20" name="cstServiceInfo.svrResult"/>
			<span class="red_star">*</span></td>
			<th>满意度</th>
			<td>
				<select name="cstServiceInfo.svrSatisfy">
					<option value=5>☆☆☆☆☆</option>
					<option value=4>☆☆☆☆</option>
					<option value=3>☆☆☆</option>
					<option value=2>☆☆</option>
					<option value=1>☆</option>
				</select><span class="red_star">*</span></td>
		</tr>
	</table>
</form>
<script>
	setCurTime('t1');
	setCurTime('t2');
	setCurTime('t3');
</script>
</body>
</html>